home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / mewin10s.zip / EDEF.H < prev    next >
Text File  |  1992-03-14  |  20KB  |  401 lines

  1. /*    EDEF:        Global variable definitions for
  2.             MicroEMACS 3.9
  3.  
  4.                         written by Daniel Lawrence
  5.                         based on code by Dave G. Conroy,
  6.                             Steve Wilhite and George Jones
  7. */
  8.  
  9. #ifdef    maindef
  10.  
  11. /* for MAIN.C */
  12.  
  13. /* initialized global definitions */
  14.  
  15. NOSHARE int DNEAR fillcol = 72;     /* Current fill column        */
  16. NOSHARE short kbdm[NKBDM];        /* Macro            */
  17. NOSHARE char *execstr = NULL;        /* pointer to string to execute */
  18. NOSHARE char golabel[NPAT] = "";    /* current line to go to    */
  19. NOSHARE char paralead[NPAT] = " \t";    /* paragraph leadin chars    */
  20. NOSHARE char fmtlead[NPAT] = "";    /* format command leadin chars    */
  21. NOSHARE char mainbuf[] = "main";    /* name of main buffer        */
  22. NOSHARE char lterm[NSTRING];        /* line terminators on file write */
  23. NOSHARE unsigned char wordlist[256];    /* characters considered "in words" */
  24. NOSHARE int DNEAR wlflag = FALSE;    /* word list enabled flag    */
  25. NOSHARE int DNEAR clearflag = TRUE;    /* clear screen on screen change? */
  26. NOSHARE int DNEAR execlevel = 0;    /* execution IF level        */
  27. NOSHARE int DNEAR eolexist = TRUE;    /* does clear to EOL exist?    */
  28. NOSHARE int DNEAR revexist = FALSE;    /* does reverse video exist?    */
  29. NOSHARE int DNEAR exec_error = FALSE;    /* macro execution error pending? */
  30. NOSHARE int DNEAR flickcode = TRUE;    /* do flicker supression?    */
  31. CONST char *modename[] = {         /* name of modes        */
  32.     "WRAP", "CMODE", "SPELL", "EXACT", "VIEW", "OVER",
  33.     "MAGIC", "CRYPT", "ASAVE", "REP"};
  34. CONST char modecode[] = "WCSEVOMYAR";    /* letters to represent modes    */
  35. NOSHARE int DNEAR numfunc = NFUNCS;    /* number of bindable functions */
  36. NOSHARE int DNEAR gmode = 0;        /* global editor mode        */
  37. NOSHARE int DNEAR gflags = GFREAD;    /* global control flag        */
  38. NOSHARE int DNEAR gfcolor = 7;        /* global forgrnd color (white) */
  39. NOSHARE int DNEAR gbcolor = 0;        /* global backgrnd color (black)*/
  40. NOSHARE int DNEAR deskcolor = 0;    /* desktop background color    */
  41. NOSHARE int DNEAR gasave = 256;     /* global ASAVE size        */
  42. NOSHARE int DNEAR gacount = 256;    /* count until next ASAVE    */
  43. NOSHARE int DNEAR sgarbf = TRUE;     /* TRUE if screen is garbage    */
  44. NOSHARE int DNEAR mpresf = FALSE;    /* TRUE if message in last line */
  45. NOSHARE int DNEAR clexec = FALSE;    /* command line execution flag    */
  46. NOSHARE int DNEAR mstore = FALSE;    /* storing text to macro flag    */
  47. NOSHARE int DNEAR discmd = TRUE;     /* display command flag     */
  48. NOSHARE int DNEAR disinp = TRUE;     /* display input characters    */
  49. NOSHARE int DNEAR modeflag = TRUE;    /* display modelines flag    */
  50. NOSHARE int DNEAR timeflag = FALSE;    /* display time            */
  51. NOSHARE char DNEAR lasttime[6] = "";    /* last time string displayed    */
  52. NOSHARE int DNEAR popflag = TRUE;    /* pop-up windows enabled?    */
  53. NOSHARE int DNEAR posflag = TRUE;    /* display point position    */
  54. NOSHARE int cpending = FALSE;        /* input character pending?    */
  55. NOSHARE int charpending;        /* character pushed back    */
  56. NOSHARE int DNEAR sscroll = FALSE;    /* smooth scrolling enabled flag*/
  57. NOSHARE int DNEAR hscroll = TRUE;    /* horizontal scrolling flag    */
  58. NOSHARE int DNEAR hjump = 1;        /* horizontal jump size     */
  59. NOSHARE int DNEAR ssave = TRUE;     /* safe save flag        */
  60. NOSHARE struct BUFFER *bstore = NULL;    /* buffer to store macro text to*/
  61. NOSHARE int DNEAR vtrow = 0;        /* Row location of SW cursor    */
  62. NOSHARE int DNEAR vtcol = 0;        /* Column location of SW cursor */
  63. NOSHARE int DNEAR ttrow = HUGE;     /* Row location of HW cursor    */
  64. NOSHARE int DNEAR ttcol = HUGE;     /* Column location of HW cursor */
  65. NOSHARE int DNEAR lbound = 0;        /* leftmost column of current line
  66.                        being displayed        */
  67. NOSHARE int DNEAR taboff = 0;        /* tab offset for display    */
  68. NOSHARE int DNEAR tabsize = 8;        /* current hard tab size    */
  69. NOSHARE int DNEAR stabsize = 0;        /* current soft tab size (0: use hard tabs)  */
  70. NOSHARE int DNEAR reptc = CTRL | 'U';    /* current universal repeat char*/
  71. NOSHARE int DNEAR abortc = CTRL | 'G';    /* current abort command char    */
  72. NOSHARE int DNEAR sterm = CTRL | '[';    /* search terminating character */
  73. NOSHARE int DNEAR searchtype = SRNORM;    /* current search style        */
  74. NOSHARE int DNEAR yankflag = FALSE;    /* current yank style        */
  75.  
  76. NOSHARE int DNEAR prefix = 0;        /* currently pending prefix bits */
  77. NOSHARE int DNEAR prenum = 0;        /*     "       "     numeric arg */
  78. NOSHARE int DNEAR predef = TRUE;    /*     "       "     default flag */
  79.  
  80. NOSHARE int DNEAR quotec = CTRL | 'Q';    /* quote char during mlreply() */
  81. NOSHARE CONST char *cname[] = {        /* names of colors        */
  82.     "BLACK", "RED", "GREEN", "YELLOW", "BLUE",
  83.     "MAGENTA", "CYAN", "GREY",
  84.     "GRAY", "LRED", "LGREEN", "LYELLOW", "LBLUE",
  85.     "LMAGENTA", "LCYAN", "WHITE"};
  86.   
  87. NOSHARE int kill_index;            /* current index into kill ring */
  88. NOSHARE KILL *kbufp[NRING];        /* current kill buffer chunk pointer*/
  89. NOSHARE KILL *kbufh[NRING];        /* kill buffer header pointer    */
  90. NOSHARE    int kskip[NRING];        /* # of bytes to skip in 1st kill chunk */
  91. NOSHARE int kused[NRING];        /* # of bytes used in last kill chunk*/
  92. NOSHARE WINDOW *swindow = NULL;     /* saved window pointer     */
  93. NOSHARE int cryptflag = FALSE;        /* currently encrypting?    */
  94. NOSHARE int oldcrypt = FALSE;        /* using old(broken) encryption? */
  95. NOSHARE short *kbdptr;            /* current position in keyboard buf */
  96. NOSHARE short *kbdend = &kbdm[0];    /* ptr to end of the keyboard */
  97. NOSHARE int DNEAR kbdmode = STOP;    /* current keyboard macro mode    */
  98. NOSHARE int DNEAR kbdrep = 0;        /* number of repetitions    */
  99. NOSHARE int DNEAR restflag = FALSE;    /* restricted use?        */
  100. NOSHARE int DNEAR lastkey = 0;        /* last keystoke        */
  101. NOSHARE int DNEAR seed = 0;        /* random number seed        */
  102. NOSHARE long envram = 0l;        /* # of bytes current in use by malloc */
  103. NOSHARE int DNEAR macbug = FALSE;    /* macro debugging flag        */
  104. NOSHARE int DNEAR mouseflag = TRUE;    /* use the mouse?        */
  105. NOSHARE int DNEAR diagflag = FALSE;    /* diagonal mouse movements?    */
  106. CONST char errorm[] = "ERROR";        /* error literal        */
  107. CONST char truem[] = "TRUE";        /* true literal         */
  108. CONST char falsem[] = "FALSE";        /* false litereal        */
  109. NOSHARE int DNEAR cmdstatus = TRUE;    /* last command status        */
  110. NOSHARE char palstr[49] = "";        /* palette string        */
  111. NOSHARE char lastmesg[NSTRING] = "";     /* last message posted        */
  112. NOSHARE char *lastptr = NULL;        /* ptr to lastmesg[]        */
  113. NOSHARE int DNEAR saveflag = 0;     /* Flags, saved with the $target var */
  114. NOSHARE char *fline = NULL;        /* dynamic return line        */
  115. NOSHARE int DNEAR flen = 0;        /* current length of fline    */
  116. NOSHARE int DNEAR rval = 0;        /* return value of a subprocess */
  117. NOSHARE int DNEAR eexitflag = FALSE;    /* EMACS exit flag        */
  118. NOSHARE int DNEAR eexitval = 0;     /* and the exit return value    */
  119. NOSHARE int xpos = 0;        /* current column mouse is positioned to*/
  120. NOSHARE int ypos = 0;        /* current screen row         "        */
  121. NOSHARE int nclicks = 0;    /* cleared on any non-mouse event    */
  122. NOSHARE int disphigh = FALSE;    /* display high bit chars escaped    */
  123. NOSHARE int defferupdate = FALSE;/* if TRUE, update(TRUE) should be
  124.                     called before yielding to another
  125.                     Windows application */
  126. NOSHARE int notquiescent = 1;   /* <=0 only when getkey called directly by
  127.                    editloop () */
  128. NOSHARE int fbusy = FALSE;      /* indicates file activity if FREADING
  129.                    or FWRITING. Used by abort mechanism */
  130.  
  131. /* uninitialized global definitions */
  132.  
  133. NOSHARE int DNEAR currow;    /* Cursor row            */
  134. NOSHARE int DNEAR curcol;    /* Cursor column        */
  135. NOSHARE int DNEAR thisflag;    /* Flags, this command        */
  136. NOSHARE int DNEAR lastflag;    /* Flags, last command        */
  137. NOSHARE int DNEAR curgoal;    /* Goal for C-P, C-N        */
  138. NOSHARE WINDOW *curwp;         /* Current window        */
  139. NOSHARE BUFFER *curbp;         /* Current buffer        */
  140. NOSHARE WINDOW *wheadp;        /* Head of list of windows    */
  141. NOSHARE BUFFER *bheadp;        /* Head of list of buffers     */
  142. NOSHARE SCREEN *first_screen;    /* Head and current screen in list */
  143. NOSHARE BUFFER *blistp;        /* Buffer for C-X C-B        */
  144. NOSHARE BUFFER *slistp;        /* Buffer for A-B        */
  145.  
  146. NOSHARE char sres[NBUFN];    /* current screen resolution    */
  147.  
  148. NOSHARE    char lowcase[HICHAR];    /* lower casing map        */
  149. NOSHARE    char upcase[HICHAR];    /* upper casing map        */
  150.  
  151. NOSHARE char pat[NPAT];        /* Search pattern        */
  152. NOSHARE char tap[NPAT];        /* Reversed pattern array.    */
  153. NOSHARE char rpat[NPAT];    /* replacement pattern        */
  154.  
  155. /*    Various "Hook" execution variables    */
  156.  
  157. NOSHARE KEYTAB readhook;    /* executed on all file reads */
  158. NOSHARE KEYTAB wraphook;    /* executed when wrapping text */
  159. NOSHARE KEYTAB cmdhook;        /* executed before looking for a command */
  160. NOSHARE KEYTAB writehook;    /* executed on all file writes */
  161. NOSHARE KEYTAB exbhook;        /* executed when exiting a buffer */
  162. NOSHARE KEYTAB bufhook;        /* executed when entering a buffer */
  163.  
  164. /* The variables matchline and matchoff hold the line
  165.  * and offset position of the *start* of the match.
  166.  * The variable patmatch holds the string that satisfies
  167.  * the search command.
  168.  */
  169. NOSHARE int    matchlen;
  170. NOSHARE int    matchoff;
  171. NOSHARE LINE    *matchline;
  172. NOSHARE char *patmatch = NULL;
  173.  
  174. #if    MAGIC
  175. /*
  176.  * The variables magical and rmagical determine if there
  177.  * were actual metacharacters in the search and replace strings -
  178.  * if not, then we don't have to use the slower MAGIC mode
  179.  * search functions.
  180.  */
  181. NOSHARE short int DNEAR magical = FALSE;
  182. NOSHARE short int DNEAR rmagical = FALSE;
  183. NOSHARE MC mcpat[NPAT];     /* the magic pattern        */
  184. NOSHARE MC tapcm[NPAT];     /* the reversed magic pattern    */
  185. NOSHARE RMC rmcpat[NPAT];    /* the replacement magic array    */
  186. NOSHARE char *grpmatch[MAXGROUPS];    /* holds groups found in search */ 
  187.  
  188. #endif
  189.  
  190. /* directive name table:
  191.     This holds the names of all the directives....    */
  192.  
  193. CONST char *dname[] = {
  194.     "if", "else", "endif",
  195.     "goto", "return", "endm",
  196.     "while", "endwhile", "break",
  197.     "force"
  198. };
  199.  
  200. #if    DEBUGM
  201. /*    vars needed for macro debugging output    */
  202. NOSHARE char outline[NSTRING];    /* global string to hold debug line text */
  203. #endif
  204.  
  205. /*
  206.  * System message notification (at the moment, VMS only).
  207.  */
  208. #if    VMS
  209. NOSHARE char brdcstbuf[1024];        /* Broadcast messages */
  210. NOSHARE int pending_msg = FALSE;    /* Flag - have we notified user yet.*/
  211. #endif
  212.  
  213. #else
  214.  
  215. /* for all the other .C files */
  216.  
  217. /* initialized global external declarations */
  218.  
  219. NOSHARE extern int DNEAR fillcol;    /* Current fill column        */
  220. NOSHARE extern short kbdm[];        /* Holds kayboard macro data    */
  221. NOSHARE extern char *execstr;        /* pointer to string to execute */
  222. NOSHARE extern char golabel[];        /* current line to go to    */
  223. NOSHARE extern char paralead[];        /* paragraph leadin chars    */
  224. NOSHARE extern char fmtlead[];        /* format command leadin chars    */
  225. NOSHARE extern char mainbuf[];        /* name of main buffer        */
  226. NOSHARE extern char lterm[];        /* line terminators on file write */
  227. NOSHARE extern unsigned char wordlist[];/* characters considered "in words" */
  228. NOSHARE extern int DNEAR wlflag;    /* word list enabled flag    */
  229. NOSHARE extern int DNEAR clearflag;    /* clear screen on screen change? */
  230. NOSHARE extern int DNEAR execlevel;    /* execution IF level        */
  231. NOSHARE extern int DNEAR eolexist;    /* does clear to EOL exist?    */
  232. NOSHARE extern int DNEAR revexist;    /* does reverse video exist?    */
  233. NOSHARE extern int DNEAR exec_error;    /* macro execution error pending? */
  234. NOSHARE extern int DNEAR flickcode;    /* do flicker supression?    */
  235. CONST extern char *modename[];        /* text names of modes        */
  236. CONST extern char modecode[];        /* letters to represent modes    */
  237. NOSHARE extern int DNEAR numfunc;    /* number of bindable functions */
  238. NOSHARE extern KEYTAB keytab[];        /* key bind to functions table    */
  239. NOSHARE extern NBIND names[];        /* name to function table    */
  240. NOSHARE extern int DNEAR gmode;        /* global editor mode        */
  241. NOSHARE extern int DNEAR gflags;    /* global control flag        */
  242. NOSHARE extern int DNEAR gfcolor;    /* global forgrnd color (white) */
  243. NOSHARE extern int DNEAR gbcolor;    /* global backgrnd color (black)*/
  244. NOSHARE extern int DNEAR deskcolor;    /* desktop background color    */
  245. NOSHARE extern int DNEAR gasave;    /* global ASAVE size        */
  246. NOSHARE extern int DNEAR gacount;    /* count until next ASAVE    */
  247. NOSHARE extern int DNEAR sgarbf;    /* State of screen unknown    */
  248. NOSHARE extern int DNEAR mpresf;    /* Stuff in message line    */
  249. NOSHARE extern int DNEAR clexec;    /* command line execution flag    */
  250. NOSHARE extern int DNEAR mstore;    /* storing text to macro flag    */
  251. NOSHARE extern int DNEAR discmd;    /* display command flag     */
  252. NOSHARE extern int DNEAR disinp;    /* display input characters    */
  253. NOSHARE extern int DNEAR modeflag;    /* display modelines flag    */
  254. NOSHARE extern int DNEAR timeflag;    /* display time            */
  255. NOSHARE extern char DNEAR lasttime[];    /* last time string displayed    */
  256. NOSHARE extern int DNEAR popflag;    /* pop-up windows enabled?    */
  257. NOSHARE extern int DNEAR posflag;    /* display point position    */
  258. NOSHARE extern int cpending;        /* input character pending?    */
  259. NOSHARE extern int charpending;        /* character pushed back    */
  260. NOSHARE extern int DNEAR sscroll;    /* smooth scrolling enabled flag*/
  261. NOSHARE extern int DNEAR hscroll;    /* horizontal scrolling flag    */
  262. NOSHARE extern int DNEAR hjump;        /* horizontal jump size     */
  263. NOSHARE extern int DNEAR ssave;        /* safe save flag        */
  264. NOSHARE extern struct BUFFER *bstore;    /* buffer to store macro text to*/
  265. NOSHARE extern int DNEAR vtrow;        /* Row location of SW cursor    */
  266. NOSHARE extern int DNEAR vtcol;        /* Column location of SW cursor */
  267. NOSHARE extern int DNEAR ttrow;        /* Row location of HW cursor    */
  268. NOSHARE extern int DNEAR ttcol;        /* Column location of HW cursor */
  269. NOSHARE extern int DNEAR lbound;    /* leftmost column of current line
  270.                        being displayed        */
  271. NOSHARE extern int DNEAR taboff;    /* tab offset for display    */
  272. NOSHARE extern int DNEAR tabsize;    /* current hard tab size    */
  273. NOSHARE extern int DNEAR stabsize;    /* current soft tab size (0: use hard tabs)  */
  274. NOSHARE extern int DNEAR reptc;        /* current universal repeat char*/
  275. NOSHARE extern int DNEAR abortc;    /* current abort command char    */
  276. NOSHARE extern int DNEAR sterm;        /* search terminating character */
  277. NOSHARE extern int DNEAR searchtype;    /* current search style        */
  278. NOSHARE extern int DNEAR yankflag;    /* current yank style        */
  279.  
  280. NOSHARE extern int DNEAR prefix;    /* currently pending prefix bits */
  281. NOSHARE extern int DNEAR prenum;    /*     "       "     numeric arg */
  282. NOSHARE extern int DNEAR predef;    /*     "       "     default flag */
  283.  
  284. NOSHARE extern int DNEAR quotec;    /* quote char during mlreply() */
  285. NOSHARE extern CONST char *cname[];    /* names of colors        */
  286.   
  287. NOSHARE extern int kill_index;        /* current index into kill ring */
  288. NOSHARE extern KILL *kbufp[];        /* current kill buffer chunk pointer */
  289. NOSHARE extern KILL *kbufh[];        /* kill buffer header pointer    */
  290. NOSHARE    extern int kskip[];        /* # of bytes to skip in 1st kill chunk */
  291. NOSHARE extern int kused[];        /* # of bytes used in kill buffer*/
  292. NOSHARE extern WINDOW *swindow;     /* saved window pointer     */
  293. NOSHARE extern int cryptflag;        /* currently encrypting?    */
  294. NOSHARE extern int oldcrypt;        /* using old(broken) encryption? */
  295. NOSHARE extern short *kbdptr;        /* current position in keyboard buf */
  296. NOSHARE extern short *kbdend;        /* ptr to end of the keyboard */
  297. NOSHARE extern int kbdmode;        /* current keyboard macro mode    */
  298. NOSHARE extern int kbdrep;        /* number of repetitions    */
  299. NOSHARE extern int restflag;        /* restricted use?        */
  300. NOSHARE extern int lastkey;        /* last keystoke        */
  301. NOSHARE extern int seed;        /* random number seed        */
  302. NOSHARE extern long envram;        /* # of bytes current in use by malloc */
  303. NOSHARE extern int DNEAR macbug;    /* macro debugging flag        */
  304. NOSHARE extern int DNEAR mouseflag;    /* use the mouse?        */
  305. NOSHARE extern int DNEAR diagflag;    /* diagonal mouse movements?    */
  306. CONST extern char errorm[];        /* error literal        */
  307. CONST extern char truem[];        /* true literal         */
  308. CONST extern char falsem[];        /* false litereal        */
  309. NOSHARE extern int DNEAR cmdstatus;    /* last command status        */
  310. NOSHARE extern char palstr[];        /* palette string        */
  311. NOSHARE extern char lastmesg[];        /* last message posted        */
  312. NOSHARE extern char *lastptr;        /* ptr to lastmesg[]        */
  313. NOSHARE extern int DNEAR saveflag;    /* Flags, saved with the $target var */
  314. NOSHARE extern char *fline;         /* dynamic return line */
  315. NOSHARE extern int DNEAR flen;         /* current length of fline */
  316. NOSHARE extern int DNEAR rval;         /* return value of a subprocess */
  317. NOSHARE extern int DNEAR eexitflag;    /* EMACS exit flag */
  318. NOSHARE extern int DNEAR eexitval;    /* and the exit return value */
  319. NOSHARE extern int xpos;        /* current column mouse is positioned to */
  320. NOSHARE extern int ypos;        /* current screen row         "     */
  321. NOSHARE extern int nclicks;        /* cleared on any non-mouse event*/
  322. NOSHARE extern int disphigh;        /* display high bit chars escaped*/
  323. NOSHARE extern int defferupdate;        /* if TRUE, update(TRUE) should
  324.                        be called before yielding to
  325.                        another Windows application */
  326. NOSHARE extern int notquiescent;        /* <=0 only when getkey called
  327.                        directly by editloop () */
  328. NOSHARE extern int fbusy;               /* indicates file activity if
  329.                        FREADING or FWRITING. Used by
  330.                        abort mechanism */
  331.  
  332. /* uninitialized global external declarations */
  333.  
  334. NOSHARE extern int DNEAR currow;    /* Cursor row            */
  335. NOSHARE extern int DNEAR curcol;    /* Cursor column        */
  336. NOSHARE extern int DNEAR thisflag;    /* Flags, this command        */
  337. NOSHARE extern int DNEAR lastflag;    /* Flags, last command        */
  338. NOSHARE extern int DNEAR curgoal;    /* Goal for C-P, C-N        */
  339. NOSHARE extern WINDOW *curwp;         /* Current window        */
  340. NOSHARE extern BUFFER *curbp;         /* Current buffer        */
  341. NOSHARE extern WINDOW *wheadp;        /* Head of list of windows    */
  342. NOSHARE extern BUFFER *bheadp;        /* Head of list of buffers    */
  343. NOSHARE extern SCREEN *first_screen;    /* Head and current screen in list */
  344. NOSHARE extern BUFFER *blistp;        /* Buffer for C-X C-B        */
  345. NOSHARE extern BUFFER *slistp;        /* Buffer for A-B        */
  346.  
  347. NOSHARE extern char sres[NBUFN];    /* current screen resolution    */
  348.  
  349. NOSHARE    extern char lowcase[HICHAR];    /* lower casing map        */
  350. NOSHARE    extern char upcase[HICHAR];    /* upper casing map        */
  351.  
  352. NOSHARE extern char pat[];        /* Search pattern        */
  353. NOSHARE extern char tap[];        /* Reversed pattern array.    */
  354. NOSHARE extern char rpat[];         /* replacement pattern        */
  355.  
  356. /*    Various "Hook" execution variables    */
  357.  
  358. NOSHARE extern KEYTAB readhook;        /* executed on all file reads */
  359. NOSHARE extern KEYTAB wraphook;        /* executed when wrapping text */
  360. NOSHARE extern KEYTAB cmdhook;        /* executed before looking for a cmd */
  361. NOSHARE extern KEYTAB writehook;    /* executed on all file writes */
  362. NOSHARE extern KEYTAB exbhook;        /* executed when exiting a buffer */
  363. NOSHARE extern KEYTAB bufhook;        /* executed when entering a buffer */
  364.  
  365. NOSHARE extern int matchlen;
  366. NOSHARE extern int matchoff;
  367. NOSHARE extern LINE *matchline;
  368. NOSHARE extern char *patmatch;
  369.  
  370. #if    MAGIC
  371. NOSHARE extern short int magical;
  372. NOSHARE extern short int rmagical;
  373. NOSHARE extern MC mcpat[NPAT];        /* the magic pattern        */
  374. NOSHARE extern MC tapcm[NPAT];        /* the reversed magic pattern    */
  375. NOSHARE extern RMC rmcpat[NPAT];    /* the replacement magic array    */
  376. NOSHARE extern char *grpmatch[MAXGROUPS];    /* holds groups found in search */ 
  377. #endif
  378.  
  379. CONST extern char *dname[];        /* directive name table     */
  380.  
  381. #if    DEBUGM
  382. /*    vars needed for macro debugging output    */
  383. NOSHARE extern char outline[];    /* global string to hold debug line text */
  384. #endif
  385.  
  386. /*
  387.  * System message notification (at the moment, VMS only).
  388.  */
  389. #if    VMS
  390. NOSHARE extern char brdcstbuf[1024];        /* Broadcast messages */
  391. NOSHARE extern int pending_msg;        /* Flag - have we notified user yet.*/
  392. #endif
  393.  
  394. #endif
  395.  
  396. /* terminal table defined only in TERM.C */
  397.  
  398. #ifndef termdef
  399. NOSHARE extern TERM    term;        /* Terminal information.    */
  400. #endif
  401.